package com.model.demo.designmodel.factory.factorymethod;


import com.model.demo.designmodel.factory.product.Car;

public class FactoryMethodTest {
    public static void main(String[] args) {
        CarFactory factory=new BenzFactory();
        Car car = factory.getCar();
        car.run();
        car.stop();
    }
}
